import arxiv
import view_service.api.to_database
from view_service.server import RunViewServer
import meta_service.ucentre

# 保存原有的数据库
# ORI_GLOBAL_DB = meta_service.ucentre.GetGlobalDB()
# 更换全局数据库
meta_service.ucentre.ReInitGlobalDB("sqlite:///workstation/root.db")

# 可以替换你想要显示的论文, 默认为 None
view_service.api.to_database.replaced_entry_id_list = ['2408.05093v2', '2410.07627v1', '2405.09848v1', '2411.19528v1', '2405.15683v2', '2408.12333v2', '2410.02707v3', '2411.16189v1', '2410.23114v2', '2409.03155v1', '2406.18676v2', '2408.16264v2', '2410.13298v1', '2411.00852v1', '2405.06705v1', '2412.11974v2', '2410.08085v2', '2406.02030v2', '2408.17150v1', '2406.13805v1', '2405.13021v1', '2410.08985v2', '2411.12713v1', '2405.13873v2', '2407.15680v1', '2408.17017v2', '2410.11779v1', '2407.19813v3', '2410.12298v2', '2406.17642v1', '2412.13781v1', '2412.04903v2', '2407.08488v2', '2410.11531v1', '2408.13273v1', '2411.12591v1', '2407.06192v2', '2409.09052v1', '2405.20978v1']

RunViewServer()
